var PlatformPage = {
	// 根据条件查询
	'queryByCondition': function() {
		findLatestMsgAjax.send();
	},
	// 查看消息
	'viewMsg':function(item) {
		var OBJ = {
			'博客':function(item) {
				var url = null;
				var fileName = item.msgLink;
				if(StringUtil.isNotBlank(fileName) && (fileName.startsWith("http://") || fileName.startsWith("https://") 
						|| fileName.startsWith("ftp://"))){
					url = fileName;
				} else {
					url = blogPath + "/datum/" + fileName;
				}
				window.open(url);
			}
		};
		OBJ[item.msgFrom](item);
		
	},
	// 双击查看消息
	'onDoubleClick':function(item, index) {
		PlatformPage.viewMsg(item);
		if (item.msgFrom == '博客') {
			signReadAjax.tempUrl(function(url){
				return url + "/" + item.msgId;
			});
			signReadAjax.send();
		}
		$.store.set('updateCount.platformMsg.index', index);
	},
	// 查询消息列表成功
	'onFindLstSucc':function(data, status, xhr) {
		
	},
	// 更新阅读次数
	'refreshReadCount':function(data, status, xhr) {
		var index = $.store.get("updateCount.platformMsg.index");
		var $hits = $("#msgDatatable").find("tr[row-index='" + index + "']").find("td[column-key='hits'] p");
		var count = parseInt($hits.text());
		$hits.text(count + 1);
	}
};